
// const imageSrc = "https://resource.160nurse.com/canvas/healthy/img/plane/";  //图片url前缀
const imageSrc = "../../images/";
let width = 0
let height = 0
let unit = 0
// 页面初始化 options为页面跳转所带来的参数
wx.getSystemInfo({
  success: function (res) {
    width = res.screenWidth,
    height = res.screenHeight
    unit = width / 100
  }
})
var gameImg = {
  "bg": {
    "src": imageSrc + "bg.png",
    "width": width,
    "height": 2 * height
  },
  "bomb": {
    "src": imageSrc + "bomb.png",
    "width": 19.46 * unit,
    "height": 23.73 * unit
  },
  "cartridge": {
    "src": imageSrc + "cartridge.png",
    "width": 1.6 * unit,
    "height": 3.73 * unit
  },
  "cartridge_power": {
    "src": imageSrc + "cartridge_power.png",
    "width": 1.6 * unit,
    "height": 3.73 * unit
  },
  "me": {
    "src": imageSrc + "me.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "me_2": {
    "src": imageSrc + "me_2.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "me_die1": {
    "src": imageSrc + "me_die1.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "me_die2": {
    "src": imageSrc + "me_die2.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "me_die3": {
    "src": imageSrc + "me_die3.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "me_die4": {
    "src": imageSrc + "me_die4.png",
    "width": 19.73 * unit,
    "height": 15.46 * unit
  },
  "plain1": {
    "src": imageSrc + "plain1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain1_die1": {
    "src": imageSrc + "plain1_die1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain1_die2": {
    "src": imageSrc + "plain1_die2.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain1_die3": {
    "src": imageSrc + "plain1_die3.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain2": {
    "src": imageSrc + "plain2.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain2_die1": {
    "src": imageSrc + "plain2_die1.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain2_die2": {
    "src": imageSrc + "plain2_die2.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain2_die3": {
    "src": imageSrc + "plain2_die3.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain2_die4": {
    "src": imageSrc + "plain2_die4.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain2_hurt": {
    "src": imageSrc + "plain2_hurt.png",
    "width": 20.73 * unit,
    "height": 20.73 * unit
  },
  "plain3": {
    "src": imageSrc + "plain3.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_2": {
    "src": imageSrc + "plain3_2.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die1": {
    "src": imageSrc + "plain3_die1.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die2": {
    "src": imageSrc + "plain3_die2.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die3": {
    "src": imageSrc + "plain3_die3.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die4": {
    "src": imageSrc + "plain3_die4.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die5": {
    "src": imageSrc + "plain3_die5.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_die6": {
    "src": imageSrc + "plain3_die6.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain3_hurt": {
    "src": imageSrc + "plain3_hurt.png",
    "width": 24.73 * unit,
    "height": 24.73 * unit
  },
  "plain4": {
    "src": imageSrc + "plain4.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain4_die1": {
    "src": imageSrc + "plain4_die1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain4_die2": {
    "src": imageSrc + "plain4_die2.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain4_die3": {
    "src": imageSrc + "plain4_die3.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain5": {
    "src": imageSrc + "plain5.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain5_die1": {
    "src": imageSrc + "plain5_die1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain5_die2": {
    "src": imageSrc + "plain5_die2.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain5_die3": {
    "src": imageSrc + "plain5_die3.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain6": {
    "src": imageSrc + "plain6.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain6_die1": {
    "src": imageSrc + "plain6_die1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain6_die2": {
    "src": imageSrc + "plain6_die2.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain6_die3": {
    "src": imageSrc + "plain6_die3.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain7": {
    "src": imageSrc + "plain7.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain7_die1": {
    "src": imageSrc + "plain7_die1.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain7_die2": {
    "src": imageSrc + "plain7_die2.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "plain7_die3": {
    "src": imageSrc + "plain7_die3.png",
    "width": 9.6 * unit,
    "height": 9.6 * unit
  },
  "prop1": {
    "src": imageSrc + "prop1.png",
    "width": 19.46 * unit,
    "height": 23.73 * unit
  },
  "prop2": {
    "src": imageSrc + "prop2.png",
    "width": 19.46 * unit,
    "height": 23.73 * unit
  },
  "prop3": {
    "src": imageSrc + "prop3.png",
    "width": 14.4 * unit,
    "height": 14.4 * unit
  },
  "prop4": {
    "src": imageSrc + "prop4.png",
    "width": 14.4 * unit,
    "height": 14.4 * unit
  },
  "plain8": {
    "src": imageSrc + "plain8.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_hurt": {
    "src": imageSrc + "plain8_hurt.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die1": {
    "src": imageSrc + "plain8_die1.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die2": {
    "src": imageSrc + "plain8_die2.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die3": {
    "src": imageSrc + "plain8_die3.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die4": {
    "src": imageSrc + "plain8_die4.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die5": {
    "src": imageSrc + "plain8_die5.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  },
  "plain8_die6": {
    "src": imageSrc + "plain8_die6.png",
    "width": 52.8 * unit,
    "height": 52.8 * unit
  }
}

module.exports = gameImg